package cn.ldf.keepaccounts.entity.pojo;

import cn.ldf.keepaccounts.enums.GameRecordsEnum;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.*;

/**
 * 支付记录表(GameRecords)表实体类
 *
 * @author 清峰
 * @since 2025-02-17 09:37:44
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class GameRecords extends BaseEntity {

    /**
     * 房间号
     */
    @NotBlank(message = "房间号不能为空")
    private String roomId;
    /**
     * 支付方openId
     */
    @NotBlank(message = "支付方openId不能为空")
    private String payerOpenId;
    /**
     * 支付方昵称
     */
    @NotBlank(message = "支付方昵称不能为空")
    private String payerName;
    /**
     * 收款方openId
     */
    @NotBlank(message = "收款方openId不能为空")
    private String payeeOpenId;
    /**
     * 收款方昵称
     */
    @NotBlank(message = "收款方昵称不能为空")
    private String payeeName;
    /**
     * 支付积分
     */
    @NotNull(message = "支付金额不能为空")
    @Min(value = 0,message = "支付金额不能小于0")
    private Double amount;
    /**
     * 记录状态:有效,无效
     */
    private GameRecordsEnum status;
    /**
     * 是否结算方案
     */
    private boolean isSettledPlan;

}

